package com.qfedu.lc.app.service;

import com.qfedu.lc.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 伪装接口
 *  1.配置  @FeignClient(value = "lc-userserver")
 *  2. 拷贝远程接口
 */
@FeignClient(value = "lc-userserver")
public interface SmsLogFeign {



    /**
     * 发送注册验证码
     * @param phone
     * @return
     */
    @RequestMapping("/sms/sendRegisterCode") // 注意远程请求的路径
    public R sendRegisterCode(@RequestParam("phone") String phone);


}
